package org.tinygroup.bizframe.dao.inter.constant;

import org.tinygroup.bizframe.dao.inter.pojo.Tberrormsg;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;

/**
 * <!-- begin-user-doc --> 错误代码表 * <!-- end-user-doc -->
 */
public class TberrormsgTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final TberrormsgTable TBERRORMSG_TABLE = new TberrormsgTable();

	/**
	 * <!-- begin-user-doc --> ID * <!-- end-user-doc -->
	 */
	public final Column ID = new Column(this, "id");
	/**
	 * <!-- begin-user-doc --> 错误码 * <!-- end-user-doc -->
	 */
	public final Column ERR_CODE = new Column(this, "err_code");
	/**
	 * <!-- begin-user-doc --> 错误信息 * <!-- end-user-doc -->
	 */
	public final Column ERR_MSG = new Column(this, "err_msg");

	private static java.util.Map<String, String> mappings = new java.util.Hashtable<String, String>();

	public String getFieldName(String attrName) {
		return mappings.get(attrName);
	}

	public TberrormsgTable() {
		super("tberrormsg");
	}

	public TberrormsgTable(String schemaName) {
		super(schemaName, "tberrormsg");
	}

	public TberrormsgTable(String schemaName, String alias) {
		super(schemaName, "tberrormsg", alias);
	}

	public TberrormsgTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "tberrormsg", alias, withAs);
	}

	public boolean isAutoGeneratedKeys() {
		return true;
	}

	public Class<Tberrormsg> getPojoType() {
		return Tberrormsg.class;
	}

	static {
		mappings.put("id", "id");
		mappings.put("errCode", "err_code");
		mappings.put("errMsg", "err_msg");

	}

}
